package com.ttc.ssm.service.home;

import com.ttc.ssm.common.MailPage;
import com.ttc.ssm.po.Company;
import com.ttc.ssm.po.CompanyDetail;
import com.ttc.ssm.po.DeliveryActivity;
import com.ttc.ssm.po.InviteActivity;

import javax.crypto.ExemptionMechanismException;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by Jiarui on 2016/8/5.
 */
public interface HomeCompanyService {
    public int register_company(Company company, HttpServletRequest request) throws Exception;
    public int save_psd(Company company) throws Exception;
    public Company selectCompanyById(int company_id) throws Exception;
    public CompanyDetail selectCompanyDetail(int company_id) throws Exception;

    int selectStatusByCompanyId(int company_id) throws Exception;
    int selectDetailStatusByCompanyId(int company_id) throws Exception;
    public int countRowsNoReadCompanyDelivery(int company_id) throws Exception;
    public int countRowsNoReadCompanyDeliveryForMail(MailPage mailPage) throws Exception;
    public List<DeliveryActivity> selectDeliveryActivityCompany(int company_id) throws Exception;
    public List<DeliveryActivity> selectDeliveryActivityCompanyForMail(MailPage mailPage) throws Exception;
    public int countRowsNoReadCompany(int company_id) throws Exception;
    public int countRowsNoReadCompanyForMail(MailPage mailPage) throws Exception;
    public List<InviteActivity> selectActivityCompany(int company_id) throws Exception;
    public List<InviteActivity> selectActivityCompanyForMail(MailPage mailPage) throws Exception;
}
